package com.example.securitydemo.Dao;

import com.example.securitydemo.entity.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.web.bind.annotation.Mapping;

public interface UserDao extends JpaRepository<UserInfo,Long> {
    //按照userName查询数据库信息
     UserInfo findByUsername(String username);
}
